package com.kitbox.hl.meshow;

import org.camunda.bpm.engine.identity.Group;
import org.camunda.bpm.engine.identity.User;
import org.camunda.bpm.engine.impl.identity.db.DbGroupQueryImpl;
import org.camunda.bpm.engine.impl.identity.db.DbIdentityServiceProvider;
import org.camunda.bpm.engine.impl.identity.db.DbUserQueryImpl;
import org.camunda.bpm.engine.impl.persistence.entity.GroupEntity;
import org.camunda.bpm.engine.impl.persistence.entity.TenantEntity;
import org.camunda.bpm.engine.impl.persistence.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * @Auther: honglei
 * @Date: 2019/8/20 17:19
 * @Description:
 */

public class UserProver extends DbIdentityServiceProvider {

    @Override
    public UserEntity findUserById(String userId) {
        return super.findUserById(userId);
    }

    @Override
    public long findUserCountByQueryCriteria(DbUserQueryImpl query) {
        return super.findUserCountByQueryCriteria(query);
    }

    @Override
    public List<User> findUserByQueryCriteria(DbUserQueryImpl query) {
        return super.findUserByQueryCriteria(query);
    }

    @Override
    public List<User> findUserByNativeQuery(Map<String, Object> parameterMap, int firstResult, int maxResults) {
        return super.findUserByNativeQuery(parameterMap, firstResult, maxResults);
    }

    @Override
    public long findUserCountByNativeQuery(Map<String, Object> parameterMap) {
        return super.findUserCountByNativeQuery(parameterMap);
    }

    @Override
    public GroupEntity findGroupById(String groupId) {
        return super.findGroupById(groupId);
    }

    @Override
    public long findGroupCountByQueryCriteria(DbGroupQueryImpl query) {
        return super.findGroupCountByQueryCriteria(query);
    }

    @Override
    public List<Group> findGroupByQueryCriteria(DbGroupQueryImpl query) {
        return super.findGroupByQueryCriteria(query);
    }

    @Override
    public TenantEntity findTenantById(String tenantId) {
        return super.findTenantById(tenantId);
    }
}
